package buttons;

import buttons.control.C_DropDown;
import buttons.view.V_DropDown;
import buttons.view.V_VerticalDropDown;
import processing.core.PApplet;
import view.DisplayList;
import controllers.ControlManager;

public class VerticalDropDownList extends DropDownList
{
	  public VerticalDropDownList(DisplayList v, ControlManager c, String n, float xWidth, float yHeight, PApplet p)
	  {
	     super(v, c, n, xWidth, yHeight, p);
	  }
	  // constructor for buttons that don't move around:
	  public VerticalDropDownList(DisplayList v, ControlManager c, String n, float xWidth, float yHeight, float xPos, float yPos, PApplet p)
	  {
	     super(v, c, n, xWidth, yHeight, xPos, yPos, p);
	  }
	  
	  @Override
	  protected void generateButtons(DisplayList v, ControlManager c, String n, float xWidth, float yHeight, PApplet p)
	  {
	      vButton = new V_VerticalDropDown(n, xWidth, yHeight);
	      cButton = new C_DropDown((V_VerticalDropDown)vButton, p);
	      addToManagerLists(v, c);
	  }
	}
